package com.cherrish.demo.redis;

/**
 * @author redis
 * @time 2019-02-14 15:07
 * @name DistributedLock
 * @desc:
 */
public interface DistributedLock {
    /**
     * get lock
     * @return
     */
    String acquire();

    /**
     * release lock
     * @param identifier
     * @return
     */
    boolean release(String identifier);
}
